package dae;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Input
{
    @XmlAttribute
    public String semantic;
    @XmlAttribute
    public int offset;
    @XmlAttribute
    public int set;
    @XmlAttribute
    private String source;

    @Override
    public String toString()
    {
        return semantic + "," + getSource();
    }

    public String getSource()
    {
        return source.replace("#", "");
    }
}
